import request from '@/utils/request'

// 查询盖楼活动中奖用户列表
export function listBuildingLuckUser(query) {
  return request({
    url: '/business/buildingLuckUser/list',
    method: 'get',
    params: query
  })
}

// 查询盖楼活动中奖用户详细
export function getBuildingLuckUser(id) {
  return request({
    url: '/business/buildingLuckUser/' + id,
    method: 'get'
  })
}

// 新增盖楼活动中奖用户
export function addBuildingLuckUser(data) {
  return request({
    url: '/business/buildingLuckUser',
    method: 'post',
    data: data
  })
}

// 修改盖楼活动中奖用户
export function updateBuildingLuckUser(data) {
  return request({
    url: '/business/buildingLuckUser',
    method: 'put',
    data: data
  })
}

// 删除盖楼活动中奖用户
export function delBuildingLuckUser(id) {
  return request({
    url: '/business/buildingLuckUser/' + id,
    method: 'delete'
  })
}
